function ParseCsv(csv_string) {
	var return_value = [];
	var new_return_value = [];	
	var csvval = csv_string.split("\n");
	for (var j = 0; j < csvval.length; j = j + 1) {
		var csvvalue = csvval[j].split(",");

		if (new_return_value.length == 0) {
			for (var k = 1; k < csvvalue.length; ++k) {
				new_return_value.push([]);				
			}
		}		
		
		for (var k = 0; k < csvvalue.length; ++k) {
			csvvalue[k] = parseFloat(csvvalue[k]);	
		}
		for (var k = 1; k < csvvalue.length; ++k) {
			csvvalue[k] = parseFloat(csvvalue[k]);
			new_return_value[k - 1].push([csvvalue[0], csvvalue[k]]);	
		}
		return_value.push(csvvalue);	
	}	
	return new_return_value;
}


function ParseROICsv(csv_string) {
	var return_value = [];
	var new_return_value = [];	
	var csvval = csv_string.split("\n");
	for (var j = 0; j < csvval.length; ++j) {
		//if we reached an empty line
		if(csvval[j].length == 0)
		{
			break;
		}
		var csvvalue = csvval[j].split(",");
		new_return_value.push([]);
		
		for (var k = 0; k < csvvalue.length; ++k) {
			//csvvalue[k] = csvvalue[k];
			
			new_return_value[j].push(csvvalue[k]);	
			
		}
		return_value.push(csvvalue);	
	}	
	console.log(new_return_value);
	return new_return_value;
}